Other Classes
The following classes are available globally.
-
VOActionSheetItem represents one item inside a VOActionSheetViewController.
See moreDeclaration
Objective-C
@interface VOActionSheetItem : NSObjectSwift
class VOActionSheetItem : NSObject
-
VOActionSheetViewController is a custom action sheet used by the SDK. It works similarly to a UIAlertController with style UIAlertControllerStyleActionSheet. Each action sheet item is an action in the controller. If there are too many actions to fit on screen, the actions will become scrollable. A cancel action is automatically added.
See moreDeclaration
Objective-C
@interface VOActionSheetViewController : UIViewControllerSwift
class VOActionSheetViewController : UIViewController
-
Undocumented
See moreDeclaration
Objective-C
@interface VOAddNoteViewController : UIViewController <VOPersonalizationOptionViewControllerProtocol, VORevealPersonalizationViewControllerProtocol> /** Default instantiation method for `VOAddNoteViewController` @param personalizationOption - contains the configuration options for the note creation @param createManager - the manager responsible for handling the flow management in the creation process. @param createFlowDelegate - the object responsible for implementing VOAddNoteViewController callbacks @return an instance of VOAddNoteViewController **/ + (instancetype)viewControllerWithPersonalizationOption:(VOPersonalizationOption *)personalizationOption createManager:(VOVoucherCreationManager *)createManager createFlowDelegate:(nullable id<VOVoucherCreationFlowDelegate>)createFlowDelegate; /** Overloaded instantiation method for 'VOAddNoteViewController' - used to hande the case when a specific note is to be edited @param personalizationOption - contains the configuration options for the note creation @param createManager - the manager responsible for handling the flow management in the creation process. @param createFlowDelegate - the object responsible for implementing VOAddNoteViewController callbacks @param note - the note to be edited; if this is set a specific note will be loaded, otherwise all notes will be loaded @return an instance of VOAddNoteViewController **/ + (instancetype)viewControllerWithPersonalizationOption:(VOPersonalizationOption *)personalizationOption createManager:(VOVoucherCreationManager *)createManager createFlowDelegate:(nullable id<VOVoucherCreationFlowDelegate>)createFlowDelegate toBeEdited:(nullable VONoteMedia *)note; @endSwift
class VOAddNoteViewController : UIViewController, VOPersonalizationOptionViewControllerProtocol, VORevealPersonalizationViewControllerProtocol
-
See moreVOAnimatedPersonalizationOptionrepresents aVOVouchercustomization that allows the user to add animated images to theirVOVoucher. Instantiate aVOAnimatedPersonalizationOptionand include it in the voucher creation view controller setup if you would like the user to be able to add animated photos. *Declaration
Objective-C
@interface VOAnimatedPersonalizationOption : VOPersonalizationOptionSwift
class VOAnimatedPersonalizationOption : VOPersonalizationOption -
See moreVOAnimatedPersonalizationOptionBuilderis used only to help construct theVOAnimatedPersonalizationOptionand should not be initialized directly. Instances of these properties should be instantiated and set in theVOAnimatedPersonalizationOptionanimatedPersonalizationOptionWithBuilder:method.Declaration
Objective-C
@interface VOAnimatedPersonalizationOptionBuilder : VOPersonalizationOptionBuilderSwift
class VOAnimatedPersonalizationOptionBuilder : VOPersonalizationOptionBuilder
-
VOButtonTheme is used to theme all buttons of the application.
See moreDeclaration
Objective-C
@interface VOButtonTheme : NSObject <NSCopying>Swift
class VOButtonTheme : NSObject, NSCopying
-
Use this class when temporary, in-memory storage is required.
See moreDeclaration
Objective-C
@interface VOCacheManager : NSObject <VOCacheProtocol>Swift
class VOCacheManager : NSObject, VOCacheProtocol
-
See moreVOChallengePersonalizationOptionrepresents aVOVouchercustomization which will allow users to add a challenge. Instantiate aVOChallengePersonalizationOptionif a challenge can be added to theirVOVoucher. *Declaration
Objective-C
@interface VOChallengePersonalizationOption : VOPersonalizationOptionSwift
class VOChallengePersonalizationOption : VOPersonalizationOption -
See moreVOChallengePersonalizationOptionBuilderis used only to help construct theVOChallengePersonalizationOptionand should not be initialized directly. Instances of these properties should be instantiated and set in theVOChallengePersonalizationOptionchallengePersonalizationOptionWithBuilder:method.Declaration
Objective-C
@interface VOChallengePersonalizationOptionBuilder : VOPersonalizationOptionBuilderSwift
class VOChallengePersonalizationOptionBuilder : VOPersonalizationOptionBuilder
-
VOConfigis the global config for the VouchrSDK.Note
serverUrlString and sdkIdString must be set or the application will throw an exception when theVOEngineis built.These properties can be implemented in code or by plist.
By Code: Use
configinitializer and set the properties manually before passing it to theVOEngine.By Plist: Add VOConfig.plist and use the
See moredefaultConfiginitializer or add.plist and use the configWithContentsOfFile:<path_to_plist>initializerDeclaration
Objective-C
@interface VOConfig : NSObjectSwift
class VOConfig : NSObject
-
VOCreateChallengesViewControlleris the default implementation of the challenge selection screen to pick a game. It displays all available games and allows users to play to preview the game and change game difficulty. It allows allows the user to change a games difficulty if the game can change difficulty.Declaration
Objective-C
@interface VOCreateChallengesViewController : UIViewController <VOPersonalizationOptionViewControllerProtocol>Swift
class VOCreateChallengesViewController : UIViewController, VOPersonalizationOptionViewControllerProtocol
-
Undocumented
See moreDeclaration
Objective-C
@interface VOCreateHTMLTitleViewController : UIViewController <VOPersonalizationOptionViewControllerProtocol> @property (weak, nonatomic) id<VOPersonalizationOptionViewControllerDelegate> delegate; + (instancetype)viewControllerWithPersonalizationOption:(VOPersonalizationOption *)personalizationOption createManager:(VOVoucherCreationManager *)createManager createFlowDelegate:(nullable id<VOVoucherCreationFlowDelegate>)createFlowDelegate; @endSwift
class VOCreateHTMLTitleViewController : UIViewController, VOPersonalizationOptionViewControllerProtocol
-
See moreVOCreationItemViewis the view that is dropped into theEnvelopeViewof theVoucherCreationViewController. It represents a chosenPersonalizationOptionobject by the creatingUser.Declaration
Objective-C
@interface VOCreationItemView : UIViewSwift
class VOCreationItemView : UIView
-
Undocumented
See moreDeclaration
Objective-C
@interface VODialogView : UIView <VODialogViewProtocol> + (instancetype)vouchrDialogWithVouchrTheme:(VOTheme *)vouchrTheme; - (void)keyboardWillShow:(NSNotification *)notification; - (void)keyboardWillHide:(NSNotification *)notification; @endSwift
class VODialogView : UIView, VODialogViewProtocol
-
See moreVODiscoverManageris an object responsible for requesting discoverable content.Declaration
Objective-C
@interface VODiscoverManager : NSObject <VODiscoverManagerProtocol>Swift
class VODiscoverManager : NSObject, VODiscoverManagerProtocol -
See moreDiscoverManagerBuilderis used to construct theVODiscoverManagerand should not be initialized directly.Declaration
Objective-C
@interface DiscoverManagerBuilder : NSObjectSwift
class DiscoverManagerBuilder : NSObject
-
See moreVODiscoverScreenBuilderis used only to help construct theVODiscoverScreenViewControllerand should not be initialized directly. Instances of these properties should be instantiated and set in theVOEnginevouchrEngineWithBuilder:method.Declaration
Objective-C
@interface VODiscoverScreenBuilder : NSObjectSwift
class VODiscoverScreenBuilder : NSObject
-
Undocumented
See moreDeclaration
Objective-C
@interface VODiscoverScreenV1ViewController : UIViewController<VODiscoverScreenViewControllerProtocol> @property (nonatomic, weak) id<VODiscoverScreenViewControllerDelegate> delegate; + (instancetype)viewControllerWithDiscoverManager:(VODiscoverManager *)discoverManager creationManager:(VOVoucherCreationManager *)createManager creationFlowCoordinator:(VOVoucherCreationFlowCoordinator *)creationFlowCoordinator vouchrTheme:(VOTheme *)vouchrTheme builder:(void (^)(VODiscoverScreenBuilder *builder))builderBlock; @endSwift
class VODiscoverScreenV1ViewController : UIViewController, VODiscoverScreenViewControllerProtocol
-
Undocumented
See moreDeclaration
Objective-C
@interface VODiscoverScreenV2ViewController : UIViewController<VODiscoverScreenViewControllerProtocol> @property (nonatomic, weak) id<VODiscoverScreenViewControllerDelegate> delegate; + (instancetype)viewControllerWithDiscoverManager:(VODiscoverManager *)discoverManager creationManager:(VOVoucherCreationManager *)createManager creationFlowCoordinator:(VOVoucherCreationFlowCoordinator *)creationFlowCoordinator vouchrTheme:(VOTheme *)vouchrTheme builder:(void (^)(VODiscoverScreenBuilder *builder))builderBlock; @endSwift
class VODiscoverScreenV2ViewController : UIViewController, VODiscoverScreenViewControllerProtocol
-
VouchrEngineis a singleton that persists and provides access to core manager dependencies.See moreNote
Usage Notes Initialize the VOEngine using thevouchrEngineWithBuilder:method. Example:VOEngine *vouchrEngine = [VOEngine vouchrEngineWithBuilder:^(VouchrEngineBuilder *builder) { builder.cacheManager = [VOCacheManager new]; builder.networkManager = [VONetworkManager new]; builder.userManager = [[VOUserManager alloc] initWithCacheManager:builder.cacheManager networkManager:builder.networkManager persistManager:nil]; }];Declaration
Objective-C
@interface VOEngine : NSObjectSwift
class VOEngine : NSObject
-
Undocumented
Declaration
Objective-C
@interface VOEnvelopeFactory : NSObject<VOGiftPackageFactory> @endSwift
class VOEnvelopeFactory : NSObject, VOGiftPackageFactory
-
VOErrorwill be returned inside the userInfo of an NSError on errors from the VouchrServer when using theVONetworkManagerto make network calls.It can be accessed from the NSError:
See moreVOError *vouchrError = error.userInfo[@"message"];Declaration
Objective-C
@interface VOError : NSObjectSwift
class VOError : NSObject
-
VOFontTheme is used to theme all text in the application.
See moreDeclaration
Objective-C
@interface VOFontTheme : NSObject <NSCopying>Swift
class VOFontTheme : NSObject, NSCopying
-
See moreVOFullScreenImageEditViewControlleris the screen responsible for displaying a selected image and all photo editing options. It allows users to interact with and customize a selected image.Declaration
Objective-C
@interface VOFullScreenImageEditViewController : UIViewControllerSwift
class VOFullScreenImageEditViewController : UIViewController
-
See moreVOGameDatacontains all the data for a game / challenge. It contains data that will stay static (eg. the title of the game), and data that will change based on whichVOVoucherit is in (eg. scoreToWin).Declaration
Objective-C
@interface VOGameData : NSObjectSwift
class VOGameData : NSObject
-
See moreVOGameDifficultyrepresents a difficulty a specificVOGameDatais to be played at.Declaration
Objective-C
@interface VOGameDifficulty : NSObjectSwift
class VOGameDifficulty : NSObject
-
See moreVOGameFactoryproduces UIViewControllers that conform toGameViewControllerProtocolfor the specified types.VOGameFactorycommunicates with theVOVoucherCreationFlowDelegateand delegates outside the SDK if necessary.Declaration
Objective-C
@interface VOGameFactory : NSObjectSwift
class VOGameFactory : NSObject
-
See moreVOGameManageris the default implementation of theVOGameManagerProtocol. It is responsible for any game related network requests.Declaration
Objective-C
@interface VOGameManager : NSObject <VOGameManagerProtocol>Swift
class VOGameManager : NSObject, VOGameManagerProtocol
-
VOGiftTagViewControlleris the screen that allows users to send aVOVoucherto a selected recipient or invite multiple recipients to compete in a race for theVOVoucher. The screen also contains a DateTime picker which determines when aVOVouchercan be unwrapped / when a race will take place.Declaration
Objective-C
@interface VOGiftTagViewController : UIViewController <VOPersonalizationOptionViewControllerProtocol>Swift
class VOGiftTagViewController : UIViewController, VOPersonalizationOptionViewControllerProtocol
-
VOGoogleImageSearchAgent follows the VOSearchAgent protocol to get image’s from Google Custom Search. In increments of 10, it will return 100 or less images on a successful search, depending on the maxSearchResult property of the VOPhotoPersonalizationOption. It searches with safeSearch set to
See morehigh
.Declaration
Objective-C
@interface VOGoogleImageSearchAgent : NSObject <VOSearchAgent>Swift
class VOGoogleImageSearchAgent : NSObject, VOSearchAgent
-
See moreVOHtmlGameDatais aVOGameDatawith additional properties specifically for html games.Declaration
Objective-C
@interface VOHtmlGameData : VOGameDataSwift
class VOHtmlGameData : VOGameData
-
See moreVOHtmlGameViewControllerpresents a fullscreenSKWebViewto enable users to play games that supportVOHtmlGameData.Declaration
Objective-C
@interface VOHtmlGameViewController : UIViewController <VOGameViewControllerProtocol>Swift
class VOHtmlGameViewController : UIViewController, VOGameViewControllerProtocol
-
See moreVOImageMediais aVouchrMediafor photos and animated photos.Declaration
Objective-C
@interface VOImageMedia : VOVoucherMediaSwift
class VOImageMedia : VOVoucherMedia
-
See moreVouchrImageModelSearchViewControllersearches and displays images from aVOSearchAgentsource.Declaration
Objective-C
@interface VOImageMediaSearchViewController : UIViewController <VOPersonalizationOptionViewControllerProtocol>Swift
class VOImageMediaSearchViewController : UIViewController, VOPersonalizationOptionViewControllerProtocol
-
Undocumented
See moreDeclaration
Objective-C
@interface VOImages : NSObject #pragma mark - Common @property (nonatomic) UIImage *commonBackButtonImage; @property (nonatomic) UIImage *commonCloseButtonImage; //game banner is different than the rest @property (nonatomic) UIImage *commonSelectedCheckmarkImage; @property (nonatomic) UIImage *commonEmptyProfileImage; @property (nonatomic) UIImage *commonPlayButtonImage; @property (nonatomic) UIImage *commonPauseButtonImage; @property (nonatomic) UIImage *commonStopButtonImage; @property (nonatomic) UIImage *commonSearchButtonImage; @property (nonatomic) UIImage *commonHelpButtonImage; @property (nonatomic) UIImage *commonAddButtonImage; @property (nonatomic) UIImage *commonEditButtonImage; @property (nonatomic) UIImage *commonChevronDownImage; @property (nonatomic) UIImage *commonChevronDetailImage; @property (nonatomic) UIImage *commonYoutubeLogoDetail; @property (nonatomic) UIImage *commonVideoFilmstripImage; @property (nonatomic) UIImage *commonNoteBackgroundImage; @property (nonatomic) UIImage *commonDefaultWrappingPaperImage; @property (nonatomic) UIImage *commonCheckmarkImage; @property (nonatomic) UIImage *commonRefreshImage; #pragma mark - Action Sheet @property (nonatomic) UIImage *actionSheetRecordedVideoMenuIconImage; @property (nonatomic) UIImage *actionSheetYoutubeMenuIconImage; @property (nonatomic) UIImage *actionSheetCameraRollIconImage; @property (nonatomic) UIImage *actionSheetTakePhotoIconImage; @property (nonatomic) UIImage *actionSheetGoogleImagesIconImage; #pragma mark - Payment Summary Screen @property (nonatomic) UIImage *paymentSummaryAmexCardImage; @property (nonatomic) UIImage *paymentSummaryDiscoverCardImage; @property (nonatomic) UIImage *paymentSummaryMastercardCardImage; @property (nonatomic) UIImage *paymentSummaryVisaCardImage; @property (nonatomic) UIImage *paymentSummaryPrivacyIconImage; @property (nonatomic) UIImage *paymentSummaryPrivacyFriendsIconImage; #pragma mark - Creation Screen @property (nonatomic) UIImage *personalizationLockedIconImage; @property (nonatomic) UIImage *creationScreenBackgroundImage; @property (nonatomic) UIImage *creationScreenDeleteImage; @property (nonatomic) UIImage *creationPackageRotatingEffectImage; #pragma mark - Recipient Screen @property (nonatomic) UIImage *recipientScreenPrimaryBackgroundTextureImage; @property (nonatomic) UIImage *recipientScreenSecondaryBackgroundTextureImage; @property (nonatomic) UIImage *recipientScreenUserSelectedCheckboxIconImage; @property (nonatomic) UIImage *recipientScreenUserUnselectedCheckboxIconImage; @property (nonatomic) UIImage *recipientScreenSelectFriendIconImage; @property (nonatomic) UIImage *recipientScreenSelectContestModeIconImage; @property (nonatomic) UIImage *recipientScreenContestModeIconImage; #pragma mark - Challenge Screen @property (nonatomic) UIImage *addChallengeTutorialNextButtonImage; @property (nonatomic) UIImage *challengeScoreReachedWinBannerImage; #pragma mark - Merchant Screen @property (nonatomic) UIImage *merchantScreenGiftCardBackgroundImage; @property (nonatomic) UIImage *merchantScreenDisclaimerTextBottomGradientImage; #pragma mark - Discovery Screen @property (nonatomic) UIImage *discoverScreenBackgroundImage; @property (nonatomic) UIImage *discoverScreenHeaderImage; //currently in builder @property (nonatomic) UIImage *discoverScreenAddButtonImage; @property (nonatomic) UIImage *discoverScreenDeleteButtonImage; @property (nonatomic) UIImage *discoverScreenPlayVideoButtonImage; @property (nonatomic) UIImage *discoverScreenReplayVideoButtonImage; @property (nonatomic) UIImage *discoverScreenSoundOnIconImage; @property (nonatomic) UIImage *discoverScreenSoundOffIconImage; #pragma mark - Reveal Screen @property (nonatomic) UIImage *revealScreenBackgroundImage; @property (nonatomic) UIImage *revealScreenConfettiShape1Image; @property (nonatomic) UIImage *revealScreenConfettiShape2Image; @property (nonatomic) UIImage *revealScreenConfettiShape3Image; @property (nonatomic) UIImage *revealScreenConfettiShape4Image; #pragma mark - Camera Screen @property (nonatomic) UIImage *cameraPositionToggleButtonImage; @endSwift
class VOImages : NSObject
-
Undocumented
See moreDeclaration
Objective-C
@interface VOLoadingView : UIView <VOLoadingViewProtocol> /** Convenience initializer @param color - the color of the activity indicator view. */ - (instancetype)initWithColor:(UIColor *)color; @endSwift
class VOLoadingView : UIView, VOLoadingViewProtocol
-
See moreVOMerchants represent a personalization type that is of monetary value (eg. Gift cards, Money Transfers).Declaration
Objective-C
@interface VOMerchant : NSObject <NSCoding>Swift
class VOMerchant : NSObject, NSCoding
-
See moreVOMerchantManageris the default implementation ofVOMerchantManagerProtocol. It is responsible for requesting and parsingVOMerchants from the VouchrServer.Declaration
Objective-C
@interface VOMerchantManager : NSObject <VOMerchantManagerProtocol>Swift
class VOMerchantManager : NSObject, VOMerchantManagerProtocol
-
See moreVOMerchantProductrepresents a product inside aVOMerchant. Eg. Xbox 3 month membership gift card.Declaration
Objective-C
@interface VOMerchantProduct : NSObjectSwift
class VOMerchantProduct : NSObject
-
VOMoneyPersonalizationOption represents a VOVoucher customization which enables the user to add a monetary component to the VOMutableVoucher. The default implementation of this personalization is a Gift Card Mall. Override this personalization if a custom payment technology is desired. *
See moreDeclaration
Objective-C
@interface VOMoneyPersonalizationOption : VOPersonalizationOptionSwift
class VOMoneyPersonalizationOption : VOPersonalizationOption -
See moreVOMoneyPersonalizationOptionBuilderis used only to help construct theVOMoneyPersonalizationOptionand should not be initialized directly. Instances of these properties should be instantiated and set in theVOMoneyPersonalizationOptionmoneyPersonalizationOptionWithBuilder:method.Declaration
Objective-C
@interface VOMoneyPersonalizationOptionBuilder : VOPersonalizationOptionBuilderSwift
class VOMoneyPersonalizationOptionBuilder : VOPersonalizationOptionBuilder
-
See moreVONetworkManageris the default implementation of theVONetworkManagerProtocol. It is used to handle any network requests. It also handles some authentication. Internally uses AFNetworking to complete requests.Declaration
Objective-C
@interface VONetworkManager : NSObject <VONetworkManagerProtocol>Swift
class VONetworkManager : NSObject, VONetworkManagerProtocol
-
See moreVONoteMediais aVouchrMediafor text based media.Declaration
Objective-C
@interface VONoteMedia : VOVoucherMediaSwift
class VONoteMedia : VOVoucherMedia
-
VONotePersonalizationOption represents a VOVoucher customization which will be available to the user to add notes in the voucher creation view controller. Instantiate a VONotePersonalizationOption if you would like the user to be able to add notes to their VOVoucher. *
See moreDeclaration
Objective-C
@interface VONotePersonalizationOption : VOPersonalizationOptionSwift
class VONotePersonalizationOption : VOPersonalizationOption -
See moreVONotePersonalizationOptionBuilderis used only to help construct theVONotePersonalizationOptionand should not be initialized directly. Instances of these properties should be instantiated and set in theVONotePersonalizationOptionnotePersonalizationOptionWithBuilder:method.Declaration
Objective-C
@interface VONotePersonalizationOptionBuilder : VOPersonalizationOptionBuilderSwift
class VONotePersonalizationOptionBuilder : VOPersonalizationOptionBuilder
-
See moreVOPaymentInfocontains data related to a part of the payment process.Declaration
Objective-C
@interface VOPaymentInfo : NSObjectSwift
class VOPaymentInfo : NSObject
-
See moreVOPaymentMerchantInfocontains all the information related to a specific payment object inside aVOMerchant.Declaration
Objective-C
@interface VOPaymentMerchantInfo : NSObjectSwift
class VOPaymentMerchantInfo : NSObject
-
See moreVOPersistManageris the default implementation of theVOPersistManagerProtocol. It is responsible for saving values indefinitely. By default it uses NSUserDefaults to save values.Declaration
Objective-C
@interface VOPersistManager : NSObject <VOPersistManagerProtocol>Swift
class VOPersistManager : NSObject, VOPersistManagerProtocol
-
VOPersonalizationOption represents a VOVoucher customization which will be available to the user in the voucher creation view controller. A VOPersonalizationOption should exist for each personalization the user allowed access to.
Note
VOPersonalizationOption is used as a base class, instantiate an existing subclass (ex. VOPhotoPersonalizationOption) for use.See moreNote
Any properties that are not set will have default values set.Declaration
Objective-C
@interface VOPersonalizationOption : NSObjectSwift
class VOPersonalizationOption : NSObject -
See morePersonalizationOptionBuilderis used only to help construct theVOPersonalizationOptionand should not be initialized directly. Instances of these properties should be instantiated and set in theVOPersonalizationOptionpersonalizationOptionWithBuilder:method.Declaration
Objective-C
@interface VOPersonalizationOptionBuilder : NSObjectSwift
class VOPersonalizationOptionBuilder : NSObject
-
VOPhotoPersonalizationOption represents a
See moreVOVouchercustomization that allows the user to add images to theirVOVoucher. Instantiate a VOPhotoPersonalizationOption and include it in the voucher creation view controller setup if you would like the user to be able to add photos. *Declaration
Objective-C
@interface VOPhotoPersonalizationOption : VOPersonalizationOptionSwift
class VOPhotoPersonalizationOption : VOPersonalizationOption -
See moreVOPhotoPersonalizationOptionBuilderis used only to help construct theVOPhotoPersonalizationOptionand should not be initialized directly. Instances of these properties should be instantiated and set in theVOPhotoPersonalizationOptionphotoPersonalizationOptionWithBuilder:method.Declaration
Objective-C
@interface VOPhotoPersonalizationOptionBuilder : VOPersonalizationOptionBuilderSwift
class VOPhotoPersonalizationOptionBuilder : VOPersonalizationOptionBuilder
-
The
See moreVOPreviewVoucherContentsViewControlleris the screen responsible for presenting all items in aVOVoucherand gives users the option to make changes to all editable items.Declaration
Objective-C
@interface VOPreviewVoucherContentsViewController : UIViewController <VOPreviewVoucherContentsViewControllerProtocol>Swift
class VOPreviewVoucherContentsViewController : UIViewController, VOPreviewVoucherContentsViewControllerProtocol
-
Undocumented
See moreDeclaration
Objective-C
@interface VOProductDetailsViewController : UIViewController + (instancetype)productDetailsViewControllerWithMerchant:(VOMerchant *)paymentMerchantInfo currencyCode:(NSString *)currencyCode vouchrTheme:(VOTheme *)vouchrTheme createFlowDelegate:(id<VOVoucherCreationFlowDelegate>)createFlowDelegate delegate:(id<VOProductDetailsViewControllerDelegate>)delegate; - (void)updateViewDataWithAnimation:(BOOL)animation; @endSwift
class VOProductDetailsViewController : UIViewController
-
Undocumented
See moreDeclaration
Objective-C
@interface VOPromo : NSObject typedef NS_ENUM(NSInteger, VOPromoStatus){ VOPromoStatusUnknown, VOPromoStatusActive, VOPromoStatusCancelled, VOPromoStatusUnstarted, VOPromoStatusExpired, VOPromoStatusExhausted, VOPromoStatusClaimed, VOPromoStatusRequired, }; typedef NS_ENUM(NSInteger, VOPromoType){ VOPromoTypeUnknown, VOPromoTypeOffers, VOPromoTypeSponsoredGift, VOPromoTypeReward }; @property (nonatomic) NSString * promoId; @property (nonatomic) NSString * code; @property (nonatomic) NSString * title; @property (nonatomic) double amount; @property (nonatomic) NSString * formattedAmount; @property (nonatomic) NSString * currency; @property (nonatomic) NSString * photoUrl; @property (nonatomic) NSString * hashTag; @property (nonatomic) NSString * promoDescription; @property (nonatomic) NSString * shareMessage; @property (nonatomic) VOPromoType type; @property (nonatomic) VOMerchant * merchant; // Who is sponsoring the promo @property (nonatomic) VOGameData * gameData; @property (nonatomic) VOWrappingPaperMedia * wrappingPaper; @property (nonatomic) VOPromoStatus status; //status relative to user (claimed, upgrade etc) @property (nonatomic) VOPromoStatus ongoingStatus; //status of promo apart from user @property (nonatomic) NSInteger limit; @property (nonatomic) NSDate * dateStarts; @property (nonatomic) NSDate * dateEnds; @property (nonatomic) NSDate * dateClaimable; @property (nonatomic) NSString *errorDisplayTitle; @property (nonatomic) NSString *errorDisplayMessage; @property (nonatomic) BOOL isSurpriiseMode; @property (nonatomic) NSArray <VOVoucherMedia *> *medias; + (VOPromo*)promoFromNSDictionary:(NSDictionary*)dictionary; - (NSDictionary *)dictionaryRepresentation; @endSwift
class VOPromo : NSObject
-
VORecipientPersonalizationOption represents a VOVoucher customization which will be available to the user to add a recipient to the VOMutableVoucher. Instantiate a VORecipientPersonalizationOption if you would like the user to be able to add a recipient to their VOVoucher. *
See moreDeclaration
Objective-C
@interface VORecipientPersonalizationOption : VOPersonalizationOptionSwift
class VORecipientPersonalizationOption : VOPersonalizationOption -
See moreVORecipientPersonalizationOptionBuilderis used only to help construct theVORecipientPersonalizationOptionand should not be initialized directly. Instances of these properties should be instantiated and set in theVORecipientPersonalizationOptionrecipientPersonalizationOptionWithBuilder:method.Declaration
Objective-C
@interface VORecipientPersonalizationOptionBuilder : VOPersonalizationOptionBuilderSwift
class VORecipientPersonalizationOptionBuilder : VOPersonalizationOptionBuilder
-
See moreVOSealedVoucherViewis a sealedVOEnvelopeView. It shows ribbons and a seal overtop of anVOEnvelopeView.Declaration
Objective-C
@interface VOSealedVoucherView : UIViewSwift
class VOSealedVoucherView : UIView
-
Undocumented
See moreDeclaration
Objective-C
@interface VOSelectSoundViewController : VOTabStripContainerViewController < VOPersonalizationOptionViewControllerProtocol>Swift
class VOSelectSoundViewController : VOTabStripContainerViewController, VOPersonalizationOptionViewControllerProtocol
-
See moreVOSoundMediais aVOVoucherMediafor sounds.Declaration
Objective-C
@interface VOSoundMedia : VOVoucherMediaSwift
class VOSoundMedia : VOVoucherMedia
-
VOSoundPersonalizationOptionrepresents aVOVouchercustomization which will be available to the user to add a sound to theVOMutableVoucher. Instantiate aVOSoundPersonalizationOptionif you would like the user to be able to add a sound to theirVOVoucher.
See more
*Declaration
Objective-C
@interface VOSoundPersonalizationOption : VOPersonalizationOptionSwift
class VOSoundPersonalizationOption : VOPersonalizationOption -
See moreVOSoundPersonalizationOptionBuilderis used only to help construct theVOSoundPersonalizationOptionand should not be initialized directly. Instances of these properties should be instantiated and set in theVOSoundPersonalizationOptionsoundPersonalizationOptionWithBuilder:method.Declaration
Objective-C
@interface VOSoundPersonalizationOptionBuilder : VOPersonalizationOptionBuilderSwift
class VOSoundPersonalizationOptionBuilder : VOPersonalizationOptionBuilder
-
Manages an array of view controller instances, and presents them within an Android style tab strip interface.
The view controllers specified in
tabViewControllersare presented within a UINavigationController. Switching tabs resets this navigation controller’s root view controller to the appropriate entry intabViewControllers. ThetitleViewof each root view controller’snavigationItemis managed by this controller, and is used to host the segmented control that presents the tab strip interface.Titles for the tabs are taken from each view controller’s
See moretitleattribute.Declaration
Objective-C
@interface VOTabStripContainerViewController : UINavigationControllerSwift
class VOTabStripContainerViewController : UINavigationController
-
VOTheme is used to theme all views of the application. See the VouchrStyleGuide for how the theming is mapped to each view and style recommendations.
See moreDeclaration
Objective-C
@interface VOTheme : NSObject <NSCopying>Swift
class VOTheme : NSObject, NSCopying
-
VOTitlePersonalizationOption represents a
VOVouchercustomization which will allow users to title theirVOVoucher. Instantiate aVOTitlePersonalizationOptionand include it in the voucher creation view controller setup if you would like the user to be able to add a title to their VOVoucher.See moreNote
The title uses the Display font Style. Title and placeholder text colors are non-customizable. *Declaration
Objective-C
@interface VOTitlePersonalizationOption : VOPersonalizationOptionSwift
class VOTitlePersonalizationOption : VOPersonalizationOption -
See moreVOTitlePersonalizationOptionBuilderis used only to help construct theVOTitlePersonalizationOptionand should not be initialized directly. Instances of these properties should be instantiated and set in theVOTitlePersonalizationOptiontitlePersonalizationOptionWithBuilder:method.Declaration
Objective-C
@interface VOTitlePersonalizationOptionBuilder : VOPersonalizationOptionBuilderSwift
class VOTitlePersonalizationOptionBuilder : VOPersonalizationOptionBuilder
-
Undocumented
See moreDeclaration
Objective-C
@interface VOUI : NSObject @property (nonatomic, weak, nullable) id<VOUIDelegate> delegate; + (instancetype)instance; - (id<VOGiftPackageFactory>)makeGiftPackageFactory; @endSwift
class VOUI : NSObject
-
See moreVOUsermodel for the VouchrSDK. Users are used to identify the logged in user and typically gifts are sent to aVOUser(s).Declaration
Objective-C
@interface VOUser : NSObject <NSCoding, NSCopying>Swift
class VOUser : NSObject, NSCoding, NSCopying
-
This is the default implementation of the
See moreVOUserManagerProtocol. TheVOUserManagerperforms allVOUserrelated requests.Declaration
Objective-C
@interface VOUserManager : NSObject <VOUserManagerProtocol>Swift
class VOUserManager : NSObject, VOUserManagerProtocol
-
See moreVOUserNetworkis a model to represent the different networks a user has connected with.Declaration
Objective-C
@interface VOUserNetwork : NSObjectSwift
class VOUserNetwork : NSObject
-
See moreVOVideoMediais aVouchrMediafor videos.Declaration
Objective-C
@interface VOVideoMedia : VOVoucherMediaSwift
class VOVideoMedia : VOVoucherMedia
-
VOVideoPersonalizationOption represents a VOVoucher customization which will be available to the user to add videos in the voucher creation view controller. Instantiate a VOVideoPersonalizationOption if you would like the user to be able to add videos to their VOVoucher. *
See moreDeclaration
Objective-C
@interface VOVideoPersonalizationOption : VOPersonalizationOptionSwift
class VOVideoPersonalizationOption : VOPersonalizationOption -
See moreVOVideoPersonalizationOptionBuilderis used only to help construct theVOVideoPersonalizationOptionand should not be initialized directly. Instances of these properties should be instantiated and set in theVOVideoPersonalizationOptionvideoPersonalizationOptionWithBuilder:method.Declaration
Objective-C
@interface VOVideoPersonalizationOptionBuilder : VOPersonalizationOptionBuilderSwift
class VOVideoPersonalizationOptionBuilder : VOPersonalizationOptionBuilder
-
See moreVOVoucheris the model that encompases all components of a ‘gift’. This class is immutable. UseVOMutableVoucherif you need to change values.Declaration
Objective-C
@interface VOVoucher : NSObject <NSCoding>Swift
class VOVoucher : NSObject, NSCoding
-
Default implemenation of the
See moreVOVoucherManagerProtocol.VOVoucherManageris responsible for managing anything related toVOVouchers.Declaration
Objective-C
@interface VOVoucherManager : NSObject <VOVoucherManagerProtocol>Swift
class VOVoucherManager : NSObject, VOVoucherManagerProtocol
-
See moreVOVoucherMediais the model for all Media items inside of aVOVoucher. It represents all of the different Media types: Image - Any kind of photo (eg. png, jpg). Animation - Any kind of animated photo (eg. gif). Sound - Any kind of sound (eg. mp3). Youtube - A youtube video. Video - Any kind of video (eg. m4a). Note - Any kind of text.Declaration
Objective-C
@interface VOVoucherMedia : NSObject <NSCoding>Swift
class VOVoucherMedia : NSObject, NSCoding
-
See moreVOVoucherPaymentcontains all payment information including source, destination, and redemption information. EachVOUserrequesting aVOVoucherwill receive differentVOVoucherPaymentinformation depending on their association of the VOVoucher.Declaration
Objective-C
@interface VOVoucherPayment : NSObjectSwift
class VOVoucherPayment : NSObject
-
See moreVOVoucherRevealFlowCoordinatoris responsible for the reveal setup and navigation.Declaration
Objective-C
@interface VOVoucherRevealFlowCoordinator : NSObjectSwift
class VOVoucherRevealFlowCoordinator : NSObject
-
See moreVoucherRevealManagerBuilderis used to construct theVOVoucherRevealManagerand should not be initialized directly.Declaration
Objective-C
@interface VoucherRevealManagerBuilder : NSObjectSwift
class VoucherRevealManagerBuilder : NSObject
-
See moreVOVoucherRevealViewControlleris the default reveal view controller for showing the contents of aVOVoucher. The reaveal view controller can be used for previewing, contributing and claiming aVOVoucher.Declaration
Objective-C
@interface VOVoucherRevealViewController : UIViewControllerSwift
class VOVoucherRevealViewController : UIViewController
-
Undocumented
See moreDeclaration
Objective-C
@interface VOVoucherTemplate : NSObject @property (nonatomic) NSURL *headerImageURL; @property (nonatomic) NSString *headerImageAlt; @property (nonatomic) NSString *headerText; @property (nonatomic) NSString *headerDetails; @property (nonatomic) NSURL *backgroundPhotoURL; @property (nonatomic) NSDate *dateClaimable; @property (nonatomic) NSString *title; @property (nonatomic) NSArray<NSDictionary *> *medias; @property (nonatomic) VOWrappingPaperMedia *wrappingPaper; @property (nonatomic) VOMerchant *merchant; @property (nonatomic) double merchantAmount; @property (nonatomic) VOGameData *gameData; @property (nonatomic) long long templateId; @property (nonatomic) long long templateCategoryId; @property (nonatomic) BOOL hasSeen; + (VOVoucherTemplate *)voucherTemplateFromDictionary:(NSDictionary *)dictionary; - (VOMutableVoucher *)makeMutableVoucher; @endSwift
class VOVoucherTemplate : NSObject
-
Undocumented
See moreDeclaration
Objective-C
@interface VOWrappingData : NSObject @property (nonatomic) VOWrappingPaperMedia *wrappingPaperMedia; @endSwift
class VOWrappingData : NSObject
-
See moreVOWrappingPaperCategoryis the model for representing a collection of likeWrappingPapers.Declaration
Objective-C
@interface VOWrappingPaperCategory : NSObjectSwift
class VOWrappingPaperCategory : NSObject
-
See moreVOWrappingPaperManageris the default implementation ofVOWrappingPaperManagerProtocol. It is responsible for requesting and parsingVOWrappingPaperCategoryandWrappingPapers from the VouchrServer.Declaration
Objective-C
@interface VOWrappingPaperManager : NSObject <VOWrappingPaperManagerProtocol>Swift
class VOWrappingPaperManager : NSObject, VOWrappingPaperManagerProtocol
-
A
See moreVOWrappingPaperMediacontains the data to show a wrapping on anVOEnvelopeView.Declaration
Objective-C
@interface VOWrappingPaperMedia : VOImageMediaSwift
class VOWrappingPaperMedia : VOImageMedia
-
See moreVOWrappingPersonalizationOptionrepresents aVOVouchercustomization which will be available to the user to add a custom wrapping paper in the voucher creation view controller. *Declaration
Objective-C
@interface VOWrappingPersonalizationOption : VOPersonalizationOptionSwift
class VOWrappingPersonalizationOption : VOPersonalizationOption -
See moreVOWrappingPersonalizationOptionBuilderis used only to help construct theVOWrappingPersonalizationOptionand should not be initialized directly. Instances of these properties should be instantiated and set in theVOWrappingPersonalizationOptionwrappingPersonalizationOptionWithBuilder:method.Declaration
Objective-C
@interface VOWrappingPersonalizationOptionBuilder : VOPersonalizationOptionBuilderSwift
class VOWrappingPersonalizationOptionBuilder : VOPersonalizationOptionBuilder
-
This personalization screen allows users to browse and select WrappingPapers for their
See moreVOVoucherDeclaration
Objective-C
@interface VOWrappingViewController : UIViewController <VOPersonalizationOptionViewControllerProtocol>Swift
class VOWrappingViewController : UIViewController, VOPersonalizationOptionViewControllerProtocol
-
See moreVOYouTubeManageris the default implementation ofVOYoutubeManagerProtocol. It is responsible for requesting and parsing Youtube Videos from Youtube / Google.Declaration
Objective-C
@interface VOYouTubeManager : NSObject <VOYoutubeManagerProtocol>Swift
class VOYouTubeManager : NSObject, VOYoutubeManagerProtocol
-
See moreVOYouTubeMediais aVOVoucherMediathat represents a YouTube Video.Declaration
Objective-C
@interface VOYouTubeMedia : VOVoucherMediaSwift
class VOYouTubeMedia : VOVoucherMedia
View on GitHub
Other Classes Reference